<?php
/**
 * Created by PhpStorm.
 * User: jack.shan
 * Date: 2020/9/15
 * Time: 9:41
 */
namespace app\model;

use think\Model;

class User extends Model
{
    //自动时间戳
    protected $autoWriteTimestamp = true;

    // 设置当前模型对应的完整数据表名称
    protected $table = 'user';

    // 设置当前模型的数据库连接
    protected $connection = 'mysql3';



//    public function scopeAge($query, $age)
//    {
//        $query->where('age', '>', $age);
//    }
//
//
//    public function getPassword($passwd)
//    {
//        return md5($passwd);
//    }

}
